<template>
  <div id="app">
    <Gege :car = 'car' :changeCar="changeCar"/>
    <Didi :car = 'car'/>
  </div>
</template>

<script>
import Gege from "@/component/Gege";
import Didi from "@/component/Didi";

export default {
  name: 'App',
  methods:{
    changeCar(newCar){
      this.car = newCar
    }
  },
  data(){
    return{
      car:'五菱宏光',
    }
  },
  components:{
    Gege,
    Didi
  }
}
</script>

<style>

</style>
